Optimal. Leaf size=27 \[ \sqrt{2} \tanh ^{-1}\left (\frac{\tan (x)+3}{\sqrt{2} \sqrt{3 \tan (x)+4}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0316424, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {3535, 207} \[ \sqrt{2} \tanh ^{-1}\left (\frac{\tan (x)+3}{\sqrt{2} \sqrt{3 \tan (x)+4}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3535
Rule 207
Rubi steps
\begin{align*} \int \frac{1-3 \tan (x)}{\sqrt{4+3 \tan (x)}} \, dx &=-\left (18 \operatorname{Subst}\left (\int \frac{1}{-162+x^2} \, dx,x,\frac{27+9 \tan (x)}{\sqrt{4+3 \tan (x)}}\right )\right )\\ &=\sqrt{2} \tanh ^{-1}\left (\frac{3+\tan (x)}{\sqrt{2} \sqrt{4+3 \tan (x)}}\right )\\ \end{align*}
Mathematica [C] time = 0.115579, size = 65, normalized size = 2.41 \[ \frac{1}{5} \left ((3+i) \sqrt{4-3 i} \tanh ^{-1}\left (\frac{\sqrt{3 \tan (x)+4}}{\sqrt{4-3 i}}\right )+(3-i) \sqrt{4+3 i} \tanh ^{-1}\left (\frac{\sqrt{3 \tan (x)+4}}{\sqrt{4+3 i}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.076, size = 52, normalized size = 1.9 \begin{align*}{\frac{\sqrt{2}}{2}\ln \left ( 9+3\,\tan \left ( x \right ) +3\,\sqrt{4+3\,\tan \left ( x \right ) }\sqrt{2} \right ) }-{\frac{\sqrt{2}}{2}\ln \left ( 9+3\,\tan \left ( x \right ) -3\,\sqrt{4+3\,\tan \left ( x \right ) }\sqrt{2} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{3 \, \tan \left (x\right ) - 1}{\sqrt{3 \, \tan \left (x\right ) + 4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.01568, size = 153, normalized size = 5.67 \begin{align*} \frac{1}{2} \, \sqrt{2} \log \left (\frac{\tan \left (x\right )^{2} + 2 \,{\left (\sqrt{2} \tan \left (x\right ) + 3 \, \sqrt{2}\right )} \sqrt{3 \, \tan \left (x\right ) + 4} + 12 \, \tan \left (x\right ) + 17}{\tan \left (x\right )^{2} + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{3 \tan{\left (x \right )}}{\sqrt{3 \tan{\left (x \right )} + 4}}\, dx - \int - \frac{1}{\sqrt{3 \tan{\left (x \right )} + 4}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{3 \, \tan \left (x\right ) - 1}{\sqrt{3 \, \tan \left (x\right ) + 4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]